package com.plian.system.entity.sys;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("sys_service_org")
@ApiModel(value = "业务组织")
public class ServiceOrg extends Org{

    @ApiModelProperty("业务组织主表id")
    private Long baseServiceOrgId;

    @ApiModelProperty(value = "初始版本 id")
    private String initialId;

    @ApiModelProperty(value = "主版本 组织初始id 其他业务单据统一用这个id")
    private String mainVersionInitialId;

    @ApiModelProperty(value = "上个版本id")
    private String lastVersionId;

    @ApiModelProperty("是否最新 0否1是")
    private Integer isLatest;

    @ApiModelProperty("版本号")
    private Integer version;

    @JsonFormat(pattern = DateUtil.PATTERN_DATE, timezone = "Asia/Shanghai")
    @ApiModelProperty("是否生效 0否1是 默认1")
    private Integer isEffective;

    @JsonFormat(pattern = DateUtil.PATTERN_DATE, timezone = "Asia/Shanghai")
    @ApiModelProperty(value = "生效时间")
    private Date effectiveTime;

    @ApiModelProperty(value = "失效时间")
    private Date failureTime;

}
